package com.baway.service.adapter

import android.widget.ImageView
import com.baway.service.model.TabEntity
import com.bumptech.glide.Glide
import com.bw.module_service.R
import com.chad.library.adapter.base.BaseQuickAdapter
import com.chad.library.adapter.base.viewholder.BaseViewHolder


class ServiceAdapter: BaseQuickAdapter<TabEntity, BaseViewHolder>(R.layout.item_service) {
    override fun convert(holder: BaseViewHolder, item: TabEntity) {
        holder.setText(R.id.tv_service,item.title)

        val imageView = holder.getView<ImageView>(R.id.img_service)

        Glide.with(imageView).load(item.selImgDrawable).into(imageView)
    }
}